package com.base.service.impl;

import com.base.mapper.voipmapper.IncomeTableMapper;
import com.base.po.voip.IncomeTable;
import com.base.po.voip.IncomeTableExample;
import com.base.service.IncomeTableService;
import com.base.utils.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;

@Service("IncomeTableService")
public class IncomeTableServiceImpl implements IncomeTableService {

    @Autowired
    IncomeTableMapper incomeTableMapper;
    @Override
    public int countByExample(IncomeTableExample example) {
        return incomeTableMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(IncomeTableExample example) {
        return incomeTableMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return incomeTableMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(IncomeTable record) {
        return incomeTableMapper.insert(record);
    }

    @Override
    public int insertSelective(IncomeTable record) {
        return incomeTableMapper.insertSelective(record);
    }

    @Override
    public List<IncomeTable> selectByExample(IncomeTableExample example) {
        return incomeTableMapper.selectByExample(example);
    }

    @Override
    public IncomeTable selectByPrimaryKey(Integer id) {
        return incomeTableMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(IncomeTable record, IncomeTableExample example) {
        return incomeTableMapper.updateByExampleSelective(record, example);
    }

    @Override
    public int updateByExample(IncomeTable record, IncomeTableExample example) {
        return incomeTableMapper.updateByExample(record, example);
    }

    @Override
    public int updateByPrimaryKeySelective(IncomeTable record) {
        return incomeTableMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(IncomeTable record) {
        return incomeTableMapper.updateByPrimaryKey(record);
    }

    @Override
    public BigDecimal countByShopId(String adminid) {
        return incomeTableMapper.countByShopId(adminid);
    }

    @Override
    public Integer countByAll(String parentId) {
        return incomeTableMapper.countByAll(parentId);
    }

    @Override
    public List<IncomeTable> selectByAll(Page page, String parentId) {
        return incomeTableMapper.selectByAll(page,parentId);
    }
}
